package kr.co.redcircle.service.oAuth.service;

import org.scribe.builder.api.Api;
import org.scribe.extractors.AccessTokenExtractor;
import org.scribe.extractors.TokenExtractor20Impl;
import org.scribe.model.OAuthConfig;
import org.scribe.model.Verb;
import org.scribe.oauth.OAuthService;

public abstract class DaumTiStory20Api implements Api{
	
	  public AccessTokenExtractor getAccessTokenExtractor()
	  {
	    return new TokenExtractor20Impl();
	  }

	  public Verb getAccessTokenVerb()
	  {
	    return Verb.POST;
	  }

	  public abstract String getAccessTokenEndpoint();

	  public abstract String getAuthorizationUrl(OAuthConfig config);

	  public OAuthService createService(OAuthConfig config)
	  {
	    return new OAuthForDaumTiStory20ServiceImpl(this, config);
	  }


}
